import Vue from 'vue'
import App from './App.vue'
import VueRouter  from "vue-router"
import routes from   "@/router/routes";

// import Test from "@/components/Test";
// import HelloWorld from "@/components/HelloWorld";
// import Demo from "@/components/Demo";

//
Vue.use(VueRouter)

Vue.config.productionTip = false














// const Home = { template: '<div>Home</div>' }
// const About = { template: '<div>About</div>' }
// const routes = [
//   { path: '/home', component: Test },
//   { path: '/about', component: HelloWorld },
//   { path: '/demo', component: Demo },
// ]















const router =new VueRouter({
  routes, // `routes: routes` 的缩写
})

new Vue({
  render: h => h(App),
  router,
}).$mount('#app')
